package com.itheima.java.ai.langchin4j.server;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.java.ai.langchin4j.entity.HealthRecord;

public interface HealthRecordService extends IService<HealthRecord> {
    
    /**
     * 根据用户ID获取健康档案
     * @param userId 用户ID
     * @return 健康档案
     */
    HealthRecord getByUserId(Long userId);
    
    /**
     * 创建或更新健康档案
     * @param healthRecord 健康档案信息
     * @return 操作结果
     */
    boolean saveOrUpdateHealthRecord(HealthRecord healthRecord);
    
    /**
     * 初始化用户健康档案
     * @param userId 用户ID
     * @return 健康档案
     */
    HealthRecord initHealthRecord(Long userId);
}